<div class="col-md-3 <?php
if ($good['is_stock']) {
    echo 'goods_item_no_stock';
}
?>">
    <div class="thumbnail" id="<?php echo $good['product_id']; ?>" >
        <?php
		//是否售完
		if($good['is_stock']){
		?>
        <img class="lazy good_img" src="/images/1zw.gif" data-original="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        <?php
		}else{
		?>
        <a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank" class="good_url" title="<?php echo $good['goods_name']; ?>">
            <img class="lazy good_img" src="/images/1zw.gif" data-original="<?php echo $good['product_img']; ?>" alt="<?php echo $good['goods_name']; ?>"  title="<?php echo $good['goods_name']; ?>">
        </a>
        <?php
		}
		?>
        <div class="caption">
            <div class="item-title">
                <i class="front-spt"></i>
                <span class="good_desc">
                <?php
				//是否售完
				if($good['is_stock']){
				?>
                    <?php echo $good['goods_name']; ?>
                <?php
				}else{
				?>
                    <a href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>"  class="good_url" title="<?php echo $good['goods_name']; ?>">
                        <?php echo $good['goods_name']; ?>
                    </a>
                <?php
				}
				?>
                </span>
            </div>
            <div>
                <div class="pull-left price font-arial">
                    &yen;<?php echo $good['promo_price']; ?>
                </div>
                <div class="pull-right sales">
                    <?php echo $good['sales_str']; ?>
                </div>
                <Div class="clearfix"></Div>
            </div>
        </div>
    </div>
    <?php
	//是否售完
	if($good['is_stock']){
	?>
    <a class="no_stock_icon" title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}else{
	?>
    <a class="no_stock_icon" href="<?php echo Yii::app()->request->hostInfo.Yii::app()->createUrl('/front/good/show', array('gid' => $good['goods_id'])); ?>" target="_blank" title="<?php echo $good['goods_name']; ?>"></a>
    <?php
	}
	?>
</div>